package com.chen.winnerframework.cqrs.executor;

import com.chen.winnerframework.cqrs.command.Command;

/**
 * CQRS 命令执行器
 *
 * @author chengy
 * @date 2022/11/02
 */
public interface CommandExecutor<C extends Command, R> {

    /**
     * 执行
     *
     * @param command 命令
     */
    R execute(C command);

}
